<include file="__THEME__/header" />


<script type="text/javascript" src="../Public/Js/Common.js"></script>
<link  href="../Public/layout.css" rel="stylesheet" type="text/css"/>
<link  href="../Public/group.css" rel="stylesheet" type="text/css"/>
<script>
	function download(fid) {
		
		document.downloadform.fid.value = fid; 
		document.downloadform.submit();
	}
</script>
</head>

<body>
 <form method="POST" action="__URL__/download" name="downloadform">
  		<input type="hidden" name="gid" value="{$gid}">
  		<input type="hidden" name="fid" value="">
 </form>

<div class="content">
   <!-- 用户组件列表 begin -->
  <include file="__THEME__/apps" />
  <!-- 用户组件列表 end -->
  <div class="main"> <!-- 右侧内容 begin  -->
    <!--  简单头部 -->
  <include file="../Public/top" />
 <!--  简单头部结束  -->
  
    
  

  <div class="groupBox">
  <div class="boxL" style="width:100%;">
    <div class="box1">
  	  <h3>群文件(共{$fileList['count']}个)</h3>
    	
    	<p></p>
    	<if condition=" $fileList['count'] ">
        <div><span class="left mr5">共{$fileList['count']}个文件； 总空间：{$config['spaceSize']} MB，已使用{$usedSpace|formatsize}，还剩<php>echo formatsize($config['spaceSize']*1024*1024-$usedSpace)</php>,&nbsp;<php>echo substr((1-$usedRate)*100,0,5)</php>%</span><span class="scale left"><span style="width:{:intval($usedRate*100)}%"></span></span></div>
  		<ul class="file">
       	  <li>
   	    	<div class="c1">文件名称</div>
            <div class="c2">大小</div>
            <div class="c3"></div>
       	  </li>
       	  <volist name="fileList['data']" id="file">
          <li>
   	    	<div class="c1"><img src="../Public/images/icon/{$file['filetype']}.gif" /> <a href="__URL__/file/gid/{$gid}/fid/{$file['id']}">{$file['name']}</a></div>
            <div class="c2">{$file['filesize']|formatsize}</div>
            <div class="c3"><a href="javascript: download({$file['id']});">下载</a></div>
       	  </li>
       	  </volist>
       	  <div class="page">{$fileList['html']}</div>
        </ul>
        <div class="alR lh30"><a href="__URL__/upload/gid/{$gid}">上传文件</a></div>
        <else />
        <!-- 如果为空显示下面P里的内容 -->
        <p class="cGray2"> 该群还没有人上传文件 <a href="__URL__/upload/gid/{$gid}">上传文件</a></p>
        </else>
        	无共享文件
        </if>
    </div>
    </div>
  <!-- end  -->
  </div>  </div><!-- 右侧内容 end  -->
  <div class="c"></div>
</div><!-- 内容 end -->
<include file="__THEME__/footer" />
</body>
</html>
